//
//  UIButton+Base.m
//  PersonalTool
//
//  Created by Samuel on 2/11/15.
//  Copyright (c) 2015 Samuel. All rights reserved.
//

#import "UIButton+Base.h"
#import <objc/runtime.h>

static void * MyObjectMyCustomPorpertyKey = (void *)@"MyObjectMyCustomPorpertyKey";
@implementation UIButton (Base)
@dynamic buttonIndexPath;
- (NSIndexPath *)buttonIndexPath
{
    return objc_getAssociatedObject(self, MyObjectMyCustomPorpertyKey);
}

- (void)setButtonIndexPath:(NSIndexPath *)buttonIndexPath
{
    objc_setAssociatedObject(self, MyObjectMyCustomPorpertyKey, buttonIndexPath, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
}


@end
